package auto.app.controller.info;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 杨森
 * @since 2022-07-09
 */
@Data
@ExcelTarget("InterfaceInfo")
public class InterfaceInfo implements Serializable {

    private static final long serialVersionUID = 3886258596290553156L;
    /**
     * 主键
     */
    @Excel(name = "ID", orderNum = "0", width = 15)
    private Integer interfaceId;

    /**
     * 接口名称
     */
    @Excel(name = "接口名称", orderNum = "1", width = 15)
    private String interfaceName;

    /**
     * 参数类型
     */
    @Excel(name = "参数类型", orderNum = "2", width = 15)
    private String parameterType;

    /**
     * 请求方式
     */
    @Excel(name = "请求方式", orderNum = "3", width = 15)
    private String requsetMethod;

    /**
     * 请求路径
     */
    @Excel(name = "请求路径", orderNum = "4", width = 15)
    private String requestPath;

    /**
     * 测试环境id
     */
    @Excel(name = "测试环境id", orderNum = "5", width = 15)
    private String testingEnvironment;

    /**
     * 测试环境名称
     */
    @Excel(name = "测试环境名称", orderNum = "6", width = 15)
    private String apiname;

    /**
     * ip地址
     */
    @Excel(name = "ip地址", orderNum = "7", width = 15)
    private String ip;


    /**
     * 端口
     */
    @Excel(name = "端口", orderNum = "8", width = 15)
    private Integer port;


    /**
     * 协议类型 现仅支持http
     */
    @Excel(name = "协议类型", orderNum = "9", width = 15)
    private String agreement;

    /**
     * 接口说明
     */
    @Excel(name = "接口说明", orderNum = "10", width = 15)
    private String remark;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", orderNum = "11", width = 15)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 创建人姓名
     */
    @Excel(name = "创建人姓名", orderNum = "12", width = 15)
    private String createName;

    /**
     * 修改时间
     */
    @Excel(name = "修改时间", orderNum = "13", width = 15)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastupdateTime;

    /**
     * 修改人姓名
     */
    @Excel(name = "修改人姓名", orderNum = "14", width = 15)
    private String lastupdateName;

    /**
     * 是否url传参 0不传 1传
     */
    @Excel(name = "是否url传参", orderNum = "15", width = 15)
    private Integer urlParameterTransfer;


}
